<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group hidden">
        <label for="c-mp_id" class="control-label col-xs-12 col-sm-2">{:__('Mp_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mp_id" data-rule="required" data-source="mp/index" class="form-control selectpage" name="row[mp_id]" type="text" value="{:get_admin_applet_id()}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-page_title" class="control-label col-xs-12 col-sm-2">{:__('Page_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-page_title" data-rule="required" class="form-control" name="row[page_title]" type="text" maxlength="12" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-banner" class="control-label col-xs-12 col-sm-2">{:__('Banner')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-banner" data-rule="required" class="form-control" size="50" name="row[banner]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-banner" class="btn btn-danger plupload" data-input-id="c-banner" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-banner"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-banner" class="btn btn-primary fachoose" data-input-id="c-banner" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-banner"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-banner"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-card_ids" class="control-label col-xs-12 col-sm-2">{:__('Card_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_ids" data-rule="required" data-field="title" data-source="wechat/card/index" data-multiple="true" class="form-control selectpage" name="row[card_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-can_share" class="control-label col-xs-12 col-sm-2">{:__('Can_share')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-can_share" data-rule="required" class="form-control selectpicker" name="row[can_share]">
                {foreach name="canShareList" item="vo"}
                <option value="{$key}" {in name="key" value="true"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-create_time" class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
